home *** CD-ROM | disk | FTP | other *** search
/ Micromanía: 150 Juegos 2010 / 150Juegos_16.iso / Shareware / Shape Smash / shape-smash.swf / scripts / Code / LIB / COMPONENTS / _gy596.as next >
Encoding:
Text File  |  2010-05-14  |  1.6 KB  |  73 lines

  1. package Code.LIB.COMPONENTS
  2. {
  3.    import Code.LIB._be548;
  4.    import Code.LIB._ct751;
  5.    import Code.LIB._oo505;
  6.    import Code.LIB._tk11;
  7.    import flash.display.Sprite;
  8.    
  9.    public class _gy596 extends _be548
  10.    {
  11.       public static const stOnn:int = 0;
  12.       
  13.       public static const stOff:int = 1;
  14.       
  15.       public var iButton:_ct751;
  16.       
  17.       private var iBitmapOnn:_oo505;
  18.       
  19.       private var aOnn:Class;
  20.       
  21.       private var iBitmapOff:_oo505;
  22.       
  23.       private var aOff:Class;
  24.       
  25.       private var state:int;
  26.       
  27.       private var iBitmap:_oo505;
  28.       
  29.       public function _gy596(param1:Class, param2:Class)
  30.       {
  31.          super();
  32.          this.aOnn = param1;
  33.          this.aOff = param2;
  34.          _wy690();
  35.       }
  36.       
  37.       public function get State() : int
  38.       {
  39.          return state;
  40.       }
  41.       
  42.       public function _wy690() : void
  43.       {
  44.          this._ck569();
  45.          if(iButton)
  46.          {
  47.             iButton._dx150();
  48.          }
  49.          iBitmap = new _oo505();
  50.          iBitmapOnn = _tk11._ln87(new aOnn() as Sprite,0.6);
  51.          iBitmapOff = _tk11._ln87(new aOff() as Sprite,0.6);
  52.          iButton = new _ct751(null,null,false,30,30);
  53.          addChild(iBitmap);
  54.          addChild(iButton);
  55.          State = State;
  56.       }
  57.       
  58.       public function set State(param1:int) : void
  59.       {
  60.          state = param1;
  61.          switch(state)
  62.          {
  63.             case stOnn:
  64.                iBitmapOnn._vy822(iBitmap);
  65.                break;
  66.             case stOff:
  67.                iBitmapOff._vy822(iBitmap);
  68.          }
  69.       }
  70.    }
  71. }
  72.  
  73.